home *** CD-ROM | disk | FTP | other *** search
-
- void main(int argc, char *argv[])
- {
- int count;
- int trace, debug, some_count;
- printf("\n This program was executed as %s \n", argv[0]);
-
- for (count = 1; count < argc; count++)
- {
- if (argv[count][0] == '-' || argv[count][0] == '/')
- {
- switch(argv[count][1])
- {
- case 'd':
- debug = TRUE;
- break;
- case 't':
- trace = TRUE;
- break;
- case 'n':
- sscanf(&argv[count][2],"%d",&some_count);
- /* Tests for any other character options */
- }
- }
- else
- strcpy(filename,argv[count]);
- }
- }
-
-